// 模拟数据定义
export const mockData = {
  configs: [
    {
      id: '1',
      name: '基础配置',
      content: '<config>基础配置内容</config>',
      createdAt: '2024-01-01T00:00:00Z',
      updatedAt: '2024-01-10T00:00:00Z'
    },
    {
      id: '2',
      name: '高级配置',
      content: '<config>高级配置内容</config>',
      createdAt: '2024-01-05T00:00:00Z',
      updatedAt: '2024-01-15T00:00:00Z'
    }
  ],
  users: [
    {
      id: '1',
      username: 'admin',
      password: 'admin123',
      name: '管理员'
    }
  ]
};

// 类型定义
export interface Config {
  id: string;
  name: string;
  content: string;
  createdAt: string;
  updatedAt: string;
}

export interface User {
  id: string;
  username: string;
  password: string;
  name: string;
}

export interface ApiResponse<T = any> {
  success: boolean;
  data?: T;
  message?: string;
}

export interface LoginResponse {
  token: string;
  user: {
    id: string;
    username: string;
    name: string;
  };
}